#ifndef _SURFACE_H
#define _SURFACE_H

#include "d3d9.h"
#include "d3dx9.h"
#include "windows.h"

class CSurface
{
public:
	//--------------------------------------------//
	//	Constructor and Destructor for this class //
	//--------------------------------------------//
	CSurface();
	~CSurface();

	//--------------------------------//
	//	Public methods for this class //
	//--------------------------------//
	HRESULT					CreateSurfaceFromFile		( LPCTSTR FilePath , LPDIRECT3DDEVICE9 pD3dDevice);
	
	LPDIRECT3DSURFACE9		GetBackBuffer				( LPDIRECT3DDEVICE9 pD3dDevice );

	void					DrawSurface					( const RECT *scrRect , const RECT *destRect , LPDIRECT3DDEVICE9 pD3dDevice );

	void					Release						();
private:
	//-----------------------------------//
	//	Private variables for this class //
	//-----------------------------------//
	LPDIRECT3DSURFACE9		m_pSurface;
};

#endif